public class HeapAndStack {
    public static void main(String[] args) {
        Person p=new Person();
        p.id=18;
        p.name="kobe";
        func1(p);
        System.out.println(p.id);
    }

    private static void func1(Person p) {
        p.id=20;
        p.name="乔丹";
        System.out.println(p.id);
    }
}
class Person{
    int id;
    String name;
}
